﻿using System;
using FFIV.Lib.Controlers.Admin;
using FFIV.Lib.Utilities;
using FFIV.Lib.WebExtension;

public partial class Admin_RegisterUser : FFWebPageBase
{
	private RegisterUserController m_Controller;

	protected override void InitialFileds()
	{
		m_Controller = new RegisterUserController(uc_RegisterUser);
	}

	protected override void BindingEvents()
	{
		uc_RegisterUser.RegisterUser += new EventHandler(uc_RegisterUser_RegisterUser);
	}

	void uc_RegisterUser_RegisterUser(object sender, EventArgs e)
	{
		m_Controller.RegisterUser();
	}

	public override void ShowMessage()
	{
		m_Controller.LoadPage();
	}

	public override Permissions RequiredPermission
	{
		get { return Permissions.Admin; }
	}
}
